package com.pureut.storage.mapper;

import com.pureut.storage.domain.SysMaterialCoding;
import com.pureut.storage.dto.SysMaterialCodingDto;
import com.pureut.storage.vo.SysMaterialCodingMqVo;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;

/**
 * 物料类别mapper
 */
@Mapper
public interface StorageMaterialCodingMapper extends BaseMapperPlus<StorageMaterialCodingMapper, SysMaterialCoding, SysMaterialCoding> {

    /**
     * 根据编码获取信息
     */
    SysMaterialCodingDto getByCode(String codingCode);

    /**
     * 修改类别信息
     */
    int updateData(SysMaterialCodingMqVo sysMaterialCodingMqVo);

    /**
     * 新增
     */
    int insertData(SysMaterialCoding sysMaterialCoding);

    /**
     * 删除
     */
    int deleteData(Long codingId);
}
